package com.bestcem.xm.survey.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @TableName ds_survey_respondentpropdata
 */
@TableName(value = "ds_survey_respondentpropdata")
@Data
@EqualsAndHashCode(callSuper = true)
public class SurveyRespondentPropData extends BaseEntity2 {
    /**
     *
     */
    @TableId(value = "id")
    private String id;

    /**
     * 答题序列号
     */
    @TableField(value = "seq")
    private Long seq;

    /**
     * 问卷ID
     */
    @TableField(value = "project_id")
    @JSONField(name = "project_id")
    private String projectId;

    /**
     * respondentprop_id
     */
    @TableField(value = "rspd_prop_id")
    @JSONField(name = "rspd_prop_id")
    private String rspdPropId;

    /**
     * 题目gid
     */
    @TableField(value = "qgid")
    private Integer qgid;

    /**
     * key gid_optionid
     */
    @TableField(value = "`key`")
    private String key;

    /**
     * 具体选项值字符串
     */
    @TableField(value = "`value`")
    private String value;

    /**
     * 开放文本值
     */
    @TableField(value = "open_data")
    @JSONField(name = "open_data")
    private String openData;

    /**
     * 版本
     */
    @TableField(value = "version")
    private String version;

    /**
     * 分组ID
     */
    @TableField(value = "group_id")
    @JSONField(name = "group_id")
    private String groupId;

    /**
     * 来源
     */
    @TableField(value = "source")
    private String source;

    /**
     * 状态
     */
    @TableField(value = "status")
    private String status;

    /**
     * 时间类型值
     */
    @TableField(value = "dt_value")
    @JSONField(name = "dt_value")
    private LocalDateTime dtValue;
}